<?php 
$model = new Administrator_Model_News_View();
$siteinfo = $model->GetSiteInfo();
?>
<form method="post" enctype="multipart/form-data">
<div class="nav">
	<div class="navbutton">
		<button class="back button" name="btback" value="btback" type="submit"></button>
		<button class="save button" name="btsave" value="btsave" type="submit"></button>
	</div>
</div>
<div class="sheet">
	<div class="mana-title">Thông tin website</div>
	<div class="intro">
		<div class="form">
		<div class="small edit">
		
			<input type="hidden" name="id" value="<?php echo $siteinfo['id']?>">
			
			<div class="element">
				
				<div class="eleft">Tên website : </div>
				<div class="eright"><input type="text" name="sitename" value="<?php echo $siteinfo['sitename']?>"></div>
			</div>
			<div class="element">
				<div class="eleft">Email : </div>
				<div class="eright"><input type="text" name="email" value="<?php echo $siteinfo['email']?>"></div>
			</div>
			<div class="element">
				<div class="eleft">Website : </div>
				<div class="eright"><input type="text" name="website" value="<?php echo $siteinfo['website']?>"></div>
			</div>
			<div class="element">
				<div class="eleft">Fax : </div>
				<div class="eright"><input type="text" name="fax" value="<?php echo $siteinfo['fax']?>"></div>
			</div>
			<div class="element">
				<div class="eleft">Phone : </div>
				<div class="eright"><input type="text" name="phone" value="<?php echo $siteinfo['phone']?>"></div>
			</div>
			<div class="element">
				<div class="eleft">Mobile : </div>
				<div class="eright"><input type="text" name="mobile" value="<?php echo $siteinfo['mobile']?>"></div>
			</div>
			<div class="element">
				<div class="eleft">Địa chỉ : </div>
				<div class="eright"><input type="text" name="address" value="<?php echo $siteinfo['address']?>"></div>
			</div>
			<div class="element">
				<div class="eleft">Keyword : </div>
				<div class="eright"><input type="text" name="meta" value="<?php echo $siteinfo['meta']?>"></div>
			</div>
			<div class="element">
				<div class="eleft">Description : </div>
				<div class="eright"><textarea name="description"><?php echo $siteinfo['description']?></textarea></div>
			</div>
			<div class="element">
				<div class="eleft">Google Analytics ID: </div>
				<div class="eright"><input type="text" name="google" value="<?php echo $siteinfo['google']?>"></div>
			</div>
			<?php if($this->uinfo->type == 1){?>
			<div class="element">
			<?php $check1 = ' checked="checked"';$check2 = '';
				if($siteinfo['siteoffline']==2){$check2 = ' checked="checked"';$check1 = '';}
			?>
				<div class="eleft">Đóng website : </div>
				<div class="eright">
				<label for="1">Mở<input id="1" type="radio" value="1" name="closewebsite"<?php echo $check1?>></label>
				<label for="2">Đóng<input id="2" type="radio" value="2" name="closewebsite"<?php echo $check2?>></label>
				</div>
			</div>
			<div class="element">
				<div class="eleft">Thông báo đóng website : </div>
				<div class="eright"><textarea rows="10" name="offnotice"><?php echo $siteinfo['offnotice']?></textarea></div>
			</div>
			<?php } ?>
			<div class="element end">
			<?php $check1 = ' checked="checked"';$check2 = '';
				if($siteinfo['status']==0){$check2 = ' checked="checked"';$check1 = '';}
			?>
				<div class="eleft">Website đa ngôn ngữ : </div>
				<div class="eright">
				<label for="1">Bật<input id="1" type="radio" value="1" name="multilang"<?php echo $check1?>></label>
				<label for="0">Tắt<input id="0" type="radio" value="0" name="multilang"<?php echo $check2?>></label>
				</div>
			</div>
		</div>
		</div>
	</div>
</div>
</form>